3.11.26 \(\int \frac {x^2}{(a+b x^n) (c+d x^n)} \, dx\) [1026]

Optimal. Leaf size=89 \[ \frac {b x^3 \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {b x^n}{a}\right )}{3 a (b c-a d)}-\frac {d x^3 \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {d x^n}{c}\right )}{3 c (b c-a d)} \]

[Out]

1/3*b*x^3*hypergeom([1, 3/n],[(3+n)/n],-b*x^n/a)/a/(-a*d+b*c)-1/3*d*x^3*hypergeom([1, 3/n],[(3+n)/n],-d*x^n/c)
/c/(-a*d+b*c)

________________________________________________________________________________________

Rubi [A]
time = 0.05, antiderivative size = 89, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {522, 371} \begin {gather*} \frac {b x^3 \, _2F_1\left (1,\frac {3}{n};\frac {n+3}{n};-\frac {b x^n}{a}\right )}{3 a (b c-a d)}-\frac {d x^3 \, _2F_1\left (1,\frac {3}{n};\frac {n+3}{n};-\frac {d x^n}{c}\right )}{3 c (b c-a d)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^2/((a + b*x^n)*(c + d*x^n)),x]

[Out]

(b*x^3*Hypergeometric2F1[1, 3/n, (3 + n)/n, -((b*x^n)/a)])/(3*a*(b*c - a*d)) - (d*x^3*Hypergeometric2F1[1, 3/n
, (3 + n)/n, -((d*x^n)/c)])/(3*c*(b*c - a*d))

Rule 371

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*((c*x)^(m + 1)/(c*(m + 1)))*Hyperg
eometric2F1[-p, (m + 1)/n, (m + 1)/n + 1, (-b)*(x^n/a)], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 522

Int[((e_.)*(x_))^(m_.)/(((a_) + (b_.)*(x_)^(n_))*((c_) + (d_.)*(x_)^(n_))), x_Symbol] :> Dist[b/(b*c - a*d), I
nt[(e*x)^m/(a + b*x^n), x], x] - Dist[d/(b*c - a*d), Int[(e*x)^m/(c + d*x^n), x], x] /; FreeQ[{a, b, c, d, e,
n, m}, x] && NeQ[b*c - a*d, 0]

Rubi steps

\begin {align*} \int \frac {x^2}{\left (a+b x^n\right ) \left (c+d x^n\right )} \, dx &=\frac {b \int \frac {x^2}{a+b x^n} \, dx}{b c-a d}-\frac {d \int \frac {x^2}{c+d x^n} \, dx}{b c-a d}\\ &=\frac {b x^3 \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {b x^n}{a}\right )}{3 a (b c-a d)}-\frac {d x^3 \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {d x^n}{c}\right )}{3 c (b c-a d)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.08, size = 78, normalized size = 0.88 \begin {gather*} \frac {b c x^3 \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {b x^n}{a}\right )-a d x^3 \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {d x^n}{c}\right )}{3 a b c^2-3 a^2 c d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^2/((a + b*x^n)*(c + d*x^n)),x]

[Out]

(b*c*x^3*Hypergeometric2F1[1, 3/n, (3 + n)/n, -((b*x^n)/a)] - a*d*x^3*Hypergeometric2F1[1, 3/n, (3 + n)/n, -((
d*x^n)/c)])/(3*a*b*c^2 - 3*a^2*c*d)

________________________________________________________________________________________

Maple [F]
time = 0.12, size = 0, normalized size = 0.00 \[\int \frac {x^{2}}{\left (a +b \,x^{n}\right ) \left (c +d \,x^{n}\right )}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2/(a+b*x^n)/(c+d*x^n),x)

[Out]

int(x^2/(a+b*x^n)/(c+d*x^n),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/(a+b*x^n)/(c+d*x^n),x, algorithm="maxima")

[Out]

integrate(x^2/((b*x^n + a)*(d*x^n + c)), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/(a+b*x^n)/(c+d*x^n),x, algorithm="fricas")

[Out]

integral(x^2/(b*d*x^(2*n) + a*c + (b*c + a*d)*x^n), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2}}{\left (a + b x^{n}\right ) \left (c + d x^{n}\right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2/(a+b*x**n)/(c+d*x**n),x)

[Out]

Integral(x**2/((a + b*x**n)*(c + d*x**n)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/(a+b*x^n)/(c+d*x^n),x, algorithm="giac")

[Out]

integrate(x^2/((b*x^n + a)*(d*x^n + c)), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2}{\left (a+b\,x^n\right )\,\left (c+d\,x^n\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2/((a + b*x^n)*(c + d*x^n)),x)

[Out]

int(x^2/((a + b*x^n)*(c + d*x^n)), x)

________________________________________________________________________________________